package com.bill99.rpc.registry.zookeeper;

import com.bill99.rpc.registry.Registry;
import com.bill99.rpc.registry.support.AbstractRegistryFactory;
import com.bill99.rpc.registry.url.RegistryUrl;

/**
 * @author sheng.zhang
 * 
 */
public class ZookeeperRegistryFactory extends AbstractRegistryFactory {

	private ZookeeperTransporter zookeeperTransporter;

	public void setZookeeperTransporter(
			ZookeeperTransporter zookeeperTransporter) {
		this.zookeeperTransporter = zookeeperTransporter;
	}

	@Override
	public Registry createRegistry(RegistryUrl registryUrl) {
		return new ZookeeperRegistry(registryUrl, zookeeperTransporter);
	}

}